home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / zapem-0.000 / zapem-0 / zapem / control.h < prev    next >
C/C++ Source or Header  |  1995-06-06  |  472b  |  32 lines

  1. /* abstract base for game control */
  2.  
  3. #ifndef CONTROL_H
  4. #define CONTROL_H
  5.  
  6. #include "btypes.h"
  7. #include "action.h"
  8.  
  9. class 
  10. Control
  11. {
  12. private:
  13.     void copy(const Control &c);
  14. protected:
  15.     bool last[FIRE4+1];
  16.     bool raw;
  17.     bool okay;
  18. public:
  19.     Control();
  20.     Control(const Control& c);
  21.     Control& operator=(const Control& c);
  22.     virtual ~Control();
  23.  
  24.     virtual void fetch(void)=0;
  25.     virtual void calibrate(void)=0;
  26.     bool getRaw(void);
  27.     bool test(action a);
  28.     bool getOkay(void);
  29. };
  30.  
  31. #endif
  32.